<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>后台管理--编程之友BBS</title>
    <link rel="stylesheet" type="text/css" href="style/top.css" />
    <link rel="stylesheet" type="text/css" href="style/main.css" />
    <link rel="stylesheet" type="text/css" href="style/footer.css" />
    <link rel="stylesheet" type="text/css" href="style/reglog.css" />
    <link rel="stylesheet" type="text/css" href="style/manage.css" />
  </head>
  
  <body>
    <!-- 网页头部 -->
      <!-- head开始 -->
	<div id="hd">
    	<div class="wp">
        	<div class="hdc">
            	<div class="hd_bg_x">
                	<div id="hd_rt">
                        <span class="e_topmenu">
                        </span>
                        <h2>
                            <a href="index.jspx" title="编程之友BBS"></a>
                        </h2>
                        <div id="e_nv">
                            <div class="new_topbar">
                                <span class="new_topbar_left">
                                <c:choose>
                                	
                                	<c:when test="${not empty manager}">
                                		欢迎您！管理员： ${manager.username } <a href="user.jspx?_method=quit">[安全退出]</a>    
                                		<a href="user.jspx?_method=showusers" class="user">用户管理</a>
                                    <span class="pipe" style="margin: 0 5px;"> | </span>
                                    <a href="blocks.jspx?_method=manageblocks" class="blocks">板块管理</a>                      
                                    </c:when>
                                    <c:otherwise>
                                    
                                    </c:otherwise>
                                </c:choose>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

   	<!-- 中间部分 -->
   	<div class="main">
  		<h3>请选择板块</h3>
  		<c:if test="${not empty requestScope.blist}">
  		<form action="user.jspx?_method=setmoderator" method="post">
  			<select name="blocks" >
  			<c:forEach var="b" items="${requestScope.blist}">
  				<option name="blocks" value="${b.id }">${b.name }</option>
  			</c:forEach>
  			</select><br/>
  			<input type="submit" value="确定"/> 
  		</form>
  		</c:if>
  		<c:if test="${not empty requestScope.blocksuser}">
  		<form action="moderator.jspx?_method=resetmoderator" method="post">
  			<input type="hidden" name="userid" value="${blocksuser.id }"/>
  			<select name="blocks">
  			<c:forEach var="b" items="${blocksuser.mlist}">
  				<option name="blocks" value="${b.blocks.id }">${b.blocks.name }</option>
  			</c:forEach>
  			</select>
  			<input type="submit" value="确认"/>
  		</form>
  		</c:if>
    </div>
    
    
      <!-- 网页底部 -->
    <%@include file="../template/footer.jsp" %>
  </body>
</html>
